//
//  CPObjectUtil.swift
//  ComponentUtils
//
//  Created by wrs on 2018/7/20.
//  Copyright © 2018年 wrs. All rights reserved.
//

import Foundation

extension NSObject {
  public  class func getClassName() -> String {
        let name: String = String(describing: classForCoder())
        return name
    }
    
   public func getClassName() -> String {
     return NSStringFromClass(self.classForCoder).components(separatedBy: ".").last!
    }
}

